<template>
  <h3>Parent</h3>
<!--  固定传递直接使用 变量=, 传递动态的数据则需要 :变量= 进行绑定操作-->
  <Child title="父类给子类的标题" :dataList="dataList"></Child>
</template>
<script>
import Child from "@/components/Child.vue";

export default {
    data() {
        return {
          dataList: [
            {"id":1,"name":"张姗"},
            {"id":2,"name":"王舞"},
            {"id":3,"name":"诸葛亮"},
            {"id":4,"name":"赵云"},
            {"id":5,"name":"刘备"},
          ],
          msg: "父类的数据"
        }
    },
  components:{
      Child
  }
} 

</script>